package flexo.examples;

import flexo.math.*;

public class Test_Input_Joystick extends Test_Graphic_Base
{
	flexo.math.Vector elapPos;
	flexo.scene.Node root;
	flexo.graphic.Camera cam;
	
	public static void main(String[] args)
	{
		run("flexo.examples.Test_Graphic_Joystick");
	}
	
	public void init()
	{
		root = mainScene.addChild("root");
		
		flexo.graphic.Material mat = graphic.addMaterial("default", "default");
		flexo.graphic.ShaderParam pTex = mat.getShaderParam("tex");
		pTex.setValue("textures/maptexture.jpg");

		flexo.graphic.entity.Entity terrain = graphic.addTerrain("textures/height.jpg", new Coords(6,6), new Coords(50,50), 3.0f);
		terrain.setMaterial("default");
		root.setPosition(new Vector(0,0,0));
		terrain.attachTo(root);
		
		input.addAction("exit", flexo.input.EventType.KEY_ESCAPE);
		input.addAction("exit", flexo.input.EventType.JOY_BUTTON_3);
		input.addAction("exit", flexo.input.EventType.JOY_BUTTON_1);	
	}

	public void cleanUp()
	{
	}	

	public void update()
	{		
	}
}